package com.dss.auto_deploy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dss.auto_deploy.domain.Deploy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: dongshoushan
 * @date: 2021年01月18日 17:07
 */
public interface IDeployMapper extends BaseMapper<Deploy> {

    /**
     * @param branch 分支
     * @param name   名字
     * @param url    url
     * @return {@link List }<{@link Deploy }>
     * @description: 选择部署
     * @author: dongshoushan
     * @date:2022-11-25 22:31:19
     */
    List<Deploy> selectToDeploy(@Param("branch") String branch, @Param("name") String name, @Param("url") String url);

    /**
     * @param namespaceId 名称空间标识
     * @param projectId   项目id
     * @return {@link List }<{@link Deploy }>
     * @description: 选择建立
     * @author: dongshoushan
     * @date:2022-11-25 22:31:17
     */
    List<Deploy> selectToBuild(@Param("namespaceId") Long namespaceId, @Param("projectId") Long projectId);

}
